package com.gxc.dao.impl;

import com.gxc.dao.OrderDao;
import com.gxc.pojo.Order;

/**
 * @Classname OrderDaoImpl
 * @Description TODO
 * @Date 2020/11/20 17:13
 * @author by 97830
 */
public class OrderDaoImpl extends BaseDao implements OrderDao {
    @Override
    public int saveOrder(Order order) {
        String sql = "insert into t_order(`order_id`,`create_time`,`price`,`status`,`user_id`) values(?,?,?,?,?)";

        return update(sql, order.getOrderId(),order.getCreateTime(),order.getPrice(),order.getStatus(),order.getUserId());
    }
}